package com.jcl.tree.controller;

import com.jcl.tree.po.Menu;
import com.jcl.tree.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2021/2/4 23:50
 */
@RestController
@RequestMapping("menu")
public class MenuController
{
    @Autowired
    private MenuService menuService;

    @GetMapping("/")
    public List<Menu> getMenusByHrId()
    {
        return menuService.getMenusByHrId(3);
    }
}
